//
// Created by Administrator on 2022/1/29.
//

#ifndef S1_1_HELLOWORLD_ANNIMAL_H
#define S1_1_HELLOWORLD_ANNIMAL_H
#include <iostream>
#include <string>

using namespace std;


/*
 * 多态
 * */
class annimal
{
public:
    annimal();
    ~annimal();

    //virtual void speak();
    void speak();
};

class Dog: public annimal
{
public:
    Dog();
    ~Dog();

    void speak();
};


#endif //S1_1_HELLOWORLD_ANNIMAL_H
